const ajax = window.ajaxbusinessAssets;
// const ajax = window.ajaxguoxingyu;
export default {
    //系统列表
    parentSystemList: (params) => ajax.request(`/v1/basic/device/device/list/parentSystemList`, 'post', params, { showLoading: true }),

    //----------- 未生效  
    //查询 
    proclist: (params) => ajax.request(`/v1/basic/system/proc/list`, 'post', params, { showLoading: true }),
    //修改
     procupdate: (params) => ajax.request(`/v1/basic/system/update`, 'post', params, { showLoading: true }),
    //新增子系统
    systemcreate: (params) => ajax.request(`/v1/basic/system/proc/create`, 'post', params, { showLoading: true }),
    //修改子系统
    systemupdate: (params) => ajax.request(`/v1/basic/system/proc/system/update`, 'post', params, { showLoading: true }),

    //删除系统
    renewal: (params) => ajax.request(`/v1/basic/system/proc/system/renewal`, 'post', params, { showLoading: true }),
    
    //----------- 已生效 
    //查询 
    list: (params) => ajax.request(`/v1/basic/system/list`, 'post', params, { showLoading: true }),

    //设备列表
    devicelist: (params) => ajax.request(`/v1/basic/device/device/list/systemKey`, 'post', params, { showLoading: true }),
    devicecreate: (params) => ajax.request(`/v1/basic/device/proc/device/create`, 'post', params, { showLoading: true }),
    deviceupdate: (params) => ajax.request(`/v1/basic/device/proc/device/update`, 'post', params, { showLoading: true }),
    devicedelete: (params) => ajax.request(`/v1/basic/device/proc/device/delete`, 'post', params, { showLoading: true }),
    //设备列表已生效
    devicelist2: (params) => ajax.request(`/v1/basic/device/device/list`, 'post', params, { showLoading: true }),
    
    //提审列表
    
    Reviewlist: (params) => ajax.request(`/v1/basic/system/proc/system/list/id`, 'post', params, { showLoading: true }),

    //点击未生效版本查workid
    getWorkId: (params) => ajax.request(`/v1/basic/workInfo/work/updateResultWorkId`, 'post', params, {
        showLoading: true
    })
}